<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPH::BaseDataPackage&lt; PackageDataType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_s_p_h.html">SPH</a></li><li class="navelem"><a class="el" href="class_s_p_h_1_1_base_data_package.html">BaseDataPackage</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_s_p_h_1_1_base_data_package-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SPH::BaseDataPackage&lt; PackageDataType &gt; Class Template Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>Abstract base class for a data package which is given by a small mesh patch.  
 <a href="class_s_p_h_1_1_base_data_package.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="base__mesh_8h_source.html">base_mesh.h</a>&gt;</code></p>

<p>Inherits <a class="el" href="class_s_p_h_1_1_base_mesh.html">SPH::BaseMesh</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abf298fac58d8c8f5aa2ac455b20c9c68"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#abf298fac58d8c8f5aa2ac455b20c9c68">BaseDataPackage</a> (<a class="el" href="classsize__t.html">size_t</a> pkg_size, <a class="el" href="classsize__t.html">size_t</a> addrs_buffer)</td></tr>
<tr class="separator:abf298fac58d8c8f5aa2ac455b20c9c68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4717703555c73397a4844212354e7b8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#aa4717703555c73397a4844212354e7b8">allocateMeshDataMatrix</a> () override</td></tr>
<tr class="separator:aa4717703555c73397a4844212354e7b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc8d962c525e14febe8388f5c97f855a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#abc8d962c525e14febe8388f5c97f855a">deleteMeshDataMatrix</a> () override</td></tr>
<tr class="separator:abc8d962c525e14febe8388f5c97f855a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27fe7ea95bd644a8c30f44de30011633"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a27fe7ea95bd644a8c30f44de30011633">PackageSize</a> ()</td></tr>
<tr class="separator:a27fe7ea95bd644a8c30f44de30011633"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a440043da036f792871370c82ceeb37be"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a440043da036f792871370c82ceeb37be">PackageAddressBuffer</a> ()</td></tr>
<tr class="separator:a440043da036f792871370c82ceeb37be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cc250a5bc80fdd235599cae4a3ac77d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a5cc250a5bc80fdd235599cae4a3ac77d">initializePackageGeometry</a> (Vecd &amp;pkg_lower_bound, Real data_spacing)</td></tr>
<tr class="separator:a5cc250a5bc80fdd235599cae4a3ac77d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad01213b2fa1db938c827b1dec02e5ddd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#ad01213b2fa1db938c827b1dec02e5ddd">initializeDataPackage</a> (<a class="el" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a> *sph_body)=0</td></tr>
<tr class="memdesc:ad01213b2fa1db938c827b1dec02e5ddd"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function initialize the package constructed by default.  <a href="#ad01213b2fa1db938c827b1dec02e5ddd">More...</a><br /></td></tr>
<tr class="separator:ad01213b2fa1db938c827b1dec02e5ddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3209043984480a653625e41f4560af8"><td class="memTemplParams" colspan="2">template&lt;class DataType , DataType PackageDataType::* MemPtr&gt; </td></tr>
<tr class="memitem:ac3209043984480a653625e41f4560af8"><td class="memTemplItemLeft" align="right" valign="top">DataType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#ac3209043984480a653625e41f4560af8">probeDataPackage</a> (MeshDataMatrix&lt; PackageDataType *&gt; pkg_data_addrs, Vecd &amp;position)</td></tr>
<tr class="memdesc:ac3209043984480a653625e41f4560af8"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function probe Bi and tri-linear interpolation within the package.  <a href="#ac3209043984480a653625e41f4560af8">More...</a><br /></td></tr>
<tr class="separator:ac3209043984480a653625e41f4560af8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0a7ee03c48f7e5f081b3fa0c99ad6fc"><td class="memTemplParams" colspan="2">template&lt;Real PackageDataType::* MemPtrSrc, Vecd PackageDataType::* MemPtrTrg&gt; </td></tr>
<tr class="memitem:aa0a7ee03c48f7e5f081b3fa0c99ad6fc"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#aa0a7ee03c48f7e5f081b3fa0c99ad6fc">computeGradient</a> (MeshDataMatrix&lt; PackageDataType *&gt; pkg_data_addrs, Real dt=0.0)</td></tr>
<tr class="memdesc:aa0a7ee03c48f7e5f081b3fa0c99ad6fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function compute gradient transform within data package.  <a href="#aa0a7ee03c48f7e5f081b3fa0c99ad6fc">More...</a><br /></td></tr>
<tr class="separator:aa0a7ee03c48f7e5f081b3fa0c99ad6fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6128b1fe1bbcb64ffe4c9254b86a84a"><td class="memTemplParams" colspan="2">template&lt;Real PackageDataType::* MemPtrSrc, Vecd PackageDataType::* MemPtrTrg&gt; </td></tr>
<tr class="memitem:ac6128b1fe1bbcb64ffe4c9254b86a84a"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#ac6128b1fe1bbcb64ffe4c9254b86a84a">computeNormalizedGradient</a> (MeshDataMatrix&lt; PackageDataType *&gt; pkg_data_addrs, Real dt=0.0)</td></tr>
<tr class="memdesc:ac6128b1fe1bbcb64ffe4c9254b86a84a"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function compute normalized gradient transform within data package.  <a href="#ac6128b1fe1bbcb64ffe4c9254b86a84a">More...</a><br /></td></tr>
<tr class="separator:ac6128b1fe1bbcb64ffe4c9254b86a84a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_s_p_h_1_1_base_mesh"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_s_p_h_1_1_base_mesh')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_s_p_h_1_1_base_mesh.html">SPH::BaseMesh</a></td></tr>
<tr class="memitem:a24a968bc706af8c7fbdc427ca7ed156b inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a24a968bc706af8c7fbdc427ca7ed156b">BaseMesh</a> ()</td></tr>
<tr class="separator:a24a968bc706af8c7fbdc427ca7ed156b inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06e00f3689429e2b174e3da6a7021900 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a06e00f3689429e2b174e3da6a7021900">BaseMesh</a> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_grid_points)</td></tr>
<tr class="separator:a06e00f3689429e2b174e3da6a7021900 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00a3bee5412ec539c8cd068d504cd45b inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a00a3bee5412ec539c8cd068d504cd45b">MeshLowerBound</a> ()</td></tr>
<tr class="separator:a00a3bee5412ec539c8cd068d504cd45b inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a075244782af1e6dccff264c569e29dab inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">Real&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a075244782af1e6dccff264c569e29dab">GridSpacing</a> ()</td></tr>
<tr class="separator:a075244782af1e6dccff264c569e29dab inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6f44b0d0886d0fd8cbbbded978fca8c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#ad6f44b0d0886d0fd8cbbbded978fca8c">NumberOfGridPoints</a> ()</td></tr>
<tr class="separator:ad6f44b0d0886d0fd8cbbbded978fca8c inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6366c75d5facfe485c6c0e3b78de3dd6 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a6366c75d5facfe485c6c0e3b78de3dd6">GridIndexFromPosition</a> (Vecd &amp;position)</td></tr>
<tr class="memdesc:a6366c75d5facfe485c6c0e3b78de3dd6 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function find grid indexes from point position/.  <a href="class_s_p_h_1_1_base_mesh.html#a6366c75d5facfe485c6c0e3b78de3dd6">More...</a><br /></td></tr>
<tr class="separator:a6366c75d5facfe485c6c0e3b78de3dd6 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8ead27d4828a6cdc50e5cdd56b7ae86 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#ad8ead27d4828a6cdc50e5cdd56b7ae86">GridPositionFromIndex</a> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> grid_index)</td></tr>
<tr class="memdesc:ad8ead27d4828a6cdc50e5cdd56b7ae86 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function find grid position from indexes.  <a href="class_s_p_h_1_1_base_mesh.html#ad8ead27d4828a6cdc50e5cdd56b7ae86">More...</a><br /></td></tr>
<tr class="separator:ad8ead27d4828a6cdc50e5cdd56b7ae86 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a253edd98d4f9c0a0eb0727db8f86e2d7 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a253edd98d4f9c0a0eb0727db8f86e2d7">transfer1DtoMeshIndex</a> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> mesh_size, <a class="el" href="classsize__t.html">size_t</a> i)</td></tr>
<tr class="memdesc:a253edd98d4f9c0a0eb0727db8f86e2d7 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function convert 1d vector index to mesh index.  <a href="class_s_p_h_1_1_base_mesh.html#a253edd98d4f9c0a0eb0727db8f86e2d7">More...</a><br /></td></tr>
<tr class="separator:a253edd98d4f9c0a0eb0727db8f86e2d7 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a504f79b1d618218ae8d48917739e1849 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a504f79b1d618218ae8d48917739e1849">transferMeshIndexTo1D</a> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> mesh_size, <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> mesh_index)</td></tr>
<tr class="memdesc:a504f79b1d618218ae8d48917739e1849 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function convert mesh index to 1d vector index.  <a href="class_s_p_h_1_1_base_mesh.html#a504f79b1d618218ae8d48917739e1849">More...</a><br /></td></tr>
<tr class="separator:a504f79b1d618218ae8d48917739e1849 inherit pub_methods_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:abe79a160d794e5d2173d1bf95fdae11e"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#abe79a160d794e5d2173d1bf95fdae11e">data_lower_bound_</a></td></tr>
<tr class="separator:abe79a160d794e5d2173d1bf95fdae11e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab082ab29c2c14ba7b5d0538053336e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#aab082ab29c2c14ba7b5d0538053336e9">pkg_size_</a></td></tr>
<tr class="separator:aab082ab29c2c14ba7b5d0538053336e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc80c1993d8775d5ac606ae7a05a29a7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classsize__t.html">size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#afc80c1993d8775d5ac606ae7a05a29a7">pkg_addrs_buffer_</a></td></tr>
<tr class="separator:afc80c1993d8775d5ac606ae7a05a29a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f995c3276dde9d2547bfb98ac810241"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a9f995c3276dde9d2547bfb98ac810241">is_inner_pkg_</a></td></tr>
<tr class="separator:a9f995c3276dde9d2547bfb98ac810241"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2a5216a0bd9628a076d06cee3b9ff36"><td class="memItemLeft" align="right" valign="top">MeshDataMatrix&lt; PackageDataType &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#ae2a5216a0bd9628a076d06cee3b9ff36">pkg_data_</a></td></tr>
<tr class="separator:ae2a5216a0bd9628a076d06cee3b9ff36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a342b7458bcc94ce0a587f66a96be8481"><td class="memItemLeft" align="right" valign="top">MeshDataMatrix&lt; PackageDataType * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_data_package.html#a342b7458bcc94ce0a587f66a96be8481">pkg_data_addrs_</a></td></tr>
<tr class="separator:a342b7458bcc94ce0a587f66a96be8481"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_class_s_p_h_1_1_base_mesh"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_s_p_h_1_1_base_mesh')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_s_p_h_1_1_base_mesh.html">SPH::BaseMesh</a></td></tr>
<tr class="memitem:ac8559448b24066e06263bff0aa5ba75b inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#ac8559448b24066e06263bff0aa5ba75b">mesh_lower_bound_</a></td></tr>
<tr class="separator:ac8559448b24066e06263bff0aa5ba75b inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c2e186b771c3573486cdcbaa362b25 inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top">Real&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#af6c2e186b771c3573486cdcbaa362b25">grid_spacing_</a></td></tr>
<tr class="separator:af6c2e186b771c3573486cdcbaa362b25 inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e1e27e30924c3390d8cdd20dba606fd inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_base_mesh.html#a5e1e27e30924c3390d8cdd20dba606fd">number_of_grid_points_</a></td></tr>
<tr class="separator:a5e1e27e30924c3390d8cdd20dba606fd inherit pro_attribs_class_s_p_h_1_1_base_mesh"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class PackageDataType&gt;<br />
class SPH::BaseDataPackage&lt; PackageDataType &gt;</h3>

<p>Abstract base class for a data package which is given by a small mesh patch. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="abf298fac58d8c8f5aa2ac455b20c9c68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf298fac58d8c8f5aa2ac455b20c9c68">&#9670;&nbsp;</a></span>BaseDataPackage()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::<a class="el" href="class_s_p_h_1_1_base_data_package.html">BaseDataPackage</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsize__t.html">size_t</a>&#160;</td>
          <td class="paramname"><em>pkg_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classsize__t.html">size_t</a>&#160;</td>
          <td class="paramname"><em>addrs_buffer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor with package size information. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aa4717703555c73397a4844212354e7b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4717703555c73397a4844212354e7b8">&#9670;&nbsp;</a></span>allocateMeshDataMatrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::allocateMeshDataMatrix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This function allocate memory for package data </p>

<p>Implements <a class="el" href="class_s_p_h_1_1_base_mesh.html#a58efbb7a02aa9d7cb00b25a813246f22">SPH::BaseMesh</a>.</p>

</div>
</div>
<a id="aa0a7ee03c48f7e5f081b3fa0c99ad6fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0a7ee03c48f7e5f081b3fa0c99ad6fc">&#9670;&nbsp;</a></span>computeGradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
<div class="memtemplate">
template&lt;Real PackageDataType::* MemPtrSrc, Vecd PackageDataType::* MemPtrTrg&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::computeGradient </td>
          <td>(</td>
          <td class="paramtype">MeshDataMatrix&lt; PackageDataType *&gt;&#160;</td>
          <td class="paramname"><em>pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>dt</em> = <code>0.0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function compute gradient transform within data package. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pkg_data_addrs(MeshDataMatrix&lt;PackageDataType*&gt;)</td><td>The data matrix. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dt(Real)</td><td>Time step (Not used) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac6128b1fe1bbcb64ffe4c9254b86a84a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6128b1fe1bbcb64ffe4c9254b86a84a">&#9670;&nbsp;</a></span>computeNormalizedGradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
<div class="memtemplate">
template&lt;Real PackageDataType::* MemPtrSrc, Vecd PackageDataType::* MemPtrTrg&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::computeNormalizedGradient </td>
          <td>(</td>
          <td class="paramtype">MeshDataMatrix&lt; PackageDataType *&gt;&#160;</td>
          <td class="paramname"><em>pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>dt</em> = <code>0.0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function compute normalized gradient transform within data package. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pkg_data_addrs(MeshDataMatrix&lt;PackageDataType*&gt;)</td><td>The data matrix. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dt(Real)</td><td>Time step (Not used) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abc8d962c525e14febe8388f5c97f855a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc8d962c525e14febe8388f5c97f855a">&#9670;&nbsp;</a></span>deleteMeshDataMatrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::deleteMeshDataMatrix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This function delete memory for package data </p>

<p>Implements <a class="el" href="class_s_p_h_1_1_base_mesh.html#a1acc5827a77705943ed2e2357d77e7af">SPH::BaseMesh</a>.</p>

</div>
</div>
<a id="ad01213b2fa1db938c827b1dec02e5ddd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad01213b2fa1db938c827b1dec02e5ddd">&#9670;&nbsp;</a></span>initializeDataPackage()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::initializeDataPackage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a> *&#160;</td>
          <td class="paramname"><em>sph_body</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This function initialize the package constructed by default. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">sph_body(SPHBody)</td><td>A pointer of <a class="el" href="namespace_s_p_h.html">SPH</a> Body. </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="class_s_p_h_1_1_level_set_data_package.html#ada7d92474227130cc7562bed059bb3a9">SPH::LevelSetDataPackage</a>.</p>

</div>
</div>
<a id="a5cc250a5bc80fdd235599cae4a3ac77d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cc250a5bc80fdd235599cae4a3ac77d">&#9670;&nbsp;</a></span>initializePackageGeometry()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::initializePackageGeometry </td>
          <td>(</td>
          <td class="paramtype">Vecd &amp;&#160;</td>
          <td class="paramname"><em>pkg_lower_bound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>data_spacing</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>initialize package mesh information. </p>

</div>
</div>
<a id="a440043da036f792871370c82ceeb37be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a440043da036f792871370c82ceeb37be">&#9670;&nbsp;</a></span>PackageAddressBuffer()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsize__t.html">size_t</a> <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::PackageAddressBuffer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This function return the size of package fringe </p>

</div>
</div>
<a id="a27fe7ea95bd644a8c30f44de30011633"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a27fe7ea95bd644a8c30f44de30011633">&#9670;&nbsp;</a></span>PackageSize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsize__t.html">size_t</a> <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::PackageSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This function return the size of package </p>

</div>
</div>
<a id="ac3209043984480a653625e41f4560af8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3209043984480a653625e41f4560af8">&#9670;&nbsp;</a></span>probeDataPackage()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
<div class="memtemplate">
template&lt;class DataType , DataType PackageDataType::* MemPtr&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">DataType <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::probeDataPackage </td>
          <td>(</td>
          <td class="paramtype">MeshDataMatrix&lt; PackageDataType *&gt;&#160;</td>
          <td class="paramname"><em>pkg_data_addrs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Vecd &amp;&#160;</td>
          <td class="paramname"><em>position</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function probe Bi and tri-linear interpolation within the package. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pkg_data_addrs(MeshDataMatrix&lt;PackageDataType*&gt;)</td><td>The data matrix. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">position(Vecd)</td><td>The inquiry postion. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="abe79a160d794e5d2173d1bf95fdae11e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe79a160d794e5d2173d1bf95fdae11e">&#9670;&nbsp;</a></span>data_lower_bound_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">Vecd <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::data_lower_bound_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>lower bound coordinate for the data as reference </p>

</div>
</div>
<a id="a9f995c3276dde9d2547bfb98ac810241"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f995c3276dde9d2547bfb98ac810241">&#9670;&nbsp;</a></span>is_inner_pkg_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbool.html">bool</a> <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::is_inner_pkg_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>If true, its data saved in memory pool. </p>

</div>
</div>
<a id="afc80c1993d8775d5ac606ae7a05a29a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc80c1993d8775d5ac606ae7a05a29a7">&#9670;&nbsp;</a></span>pkg_addrs_buffer_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsize__t.html">size_t</a> <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::pkg_addrs_buffer_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>the size of data package address buffer, should be less than package_size </p>

</div>
</div>
<a id="ae2a5216a0bd9628a076d06cee3b9ff36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae2a5216a0bd9628a076d06cee3b9ff36">&#9670;&nbsp;</a></span>pkg_data_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">MeshDataMatrix&lt;PackageDataType&gt; <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::pkg_data_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A block of data using continuous memory. </p>

</div>
</div>
<a id="a342b7458bcc94ce0a587f66a96be8481"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a342b7458bcc94ce0a587f66a96be8481">&#9670;&nbsp;</a></span>pkg_data_addrs_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">MeshDataMatrix&lt;PackageDataType*&gt; <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::pkg_data_addrs_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>address of the mesh data for spatial operatings, only valid for inner packages. The extra layer of data is from the neighbor packages. </p>

</div>
</div>
<a id="aab082ab29c2c14ba7b5d0538053336e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab082ab29c2c14ba7b5d0538053336e9">&#9670;&nbsp;</a></span>pkg_size_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class PackageDataType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classsize__t.html">size_t</a> <a class="el" href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a>&lt; PackageDataType &gt;::pkg_size_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>the size of data package. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>SPHINXsys/src/shared/meshes/<a class="el" href="base__mesh_8h_source.html">base_mesh.h</a></li>
<li>SPHINXsys/src/for_2D_build/meshes/<a class="el" href="for__2_d__build_2meshes_2base__mesh_8hpp_source.html">base_mesh.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
